import { WelfareLoginItem } from "./welfare/WelfareLoginItem";
import { WelCopyExpItem } from "./welfare/WelCopyExpItem";
import { WelOffLineExpItem } from "./welfare/WelOffLineExpItem";
import { WelfareVIPItem } from "./welfare/WelfareVIPItem";
import { SVIPInfo } from "../../../../Message/Game/SVIPInfo";
import { SAttribute } from "../../../../Message/Public/SAttribute";
//class WelfareListBody
    
    export  class WelfareListBody /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.initUI();
            return;
        }

        /* internal  */initUI(): void
        {
            this._loginItem = new WelfareLoginItem();
            this._loginItem.x = 2;
            this._loginItem.y = 0;
            addChild(this._loginItem);
            this._copyExpItem = new WelCopyExpItem();
            this._copyExpItem.x = this._loginItem.x + this._loginItem.width + 6;
            this._copyExpItem.y = this._loginItem.y;
            addChild(this._copyExpItem);
            this._offLineItem = new WelOffLineExpItem();
            this._offLineItem.x = this._loginItem.x;
            this._offLineItem.y = this._loginItem.y + this._loginItem.height + 2;
            addChild(this._offLineItem);
            this._vipItem = new WelfareVIPItem();
            this._vipItem.x = this._copyExpItem.x;
            this._vipItem.y = this._offLineItem.y;
            addChild(this._vipItem);
            return;
        }

        public updateVIPInfo(arg1: SVIPInfo): void
        {
            this._vipItem.updateVIPInfo(arg1);
            return;
        }

        public updateVIPBlessState(arg1: Boolean): void
        {
            this._vipItem.updateBlessState(arg1);
            return;
        }

        public updateCopyExp(): void
        {
            this._copyExpItem.updateData();
            return;
        }

        public updateContinuousLoadInfo(arg1: SAttribute): void
        {
            this._loginItem.updateData(arg1);
            return;
        }

        public updateOffLineExp(): void
        {
            this._offLineItem.updateData();
            return;
        }

        public updatePackItem(): void
        {
            this._offLineItem.updatePackItem();
            return;
        }

        public /* override */ get height(): number
        {
            return 400;
        }

        /* internal */ /* var */_loginItem: WelfareLoginItem;

        /* internal */ /* var */_copyExpItem: WelCopyExpItem;

        /* internal */ /* var */_offLineItem: WelOffLineExpItem;

        /* internal */ /* var */_vipItem: WelfareVIPItem;
    }
